package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsSysReportFormate
 * @Description： TODO
 * @Author：cyy
 * @Date：Created in 2018/11/15.
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYS_REPORT_FORMATE", catalog = "")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSysReportFormate extends BaseDataEntity<Long> {
    private Long id;
    private Long formPathologyId;
    private String formName;
    private String formSort;
    private Integer formUseFlag;
    private Integer formIsDefault;
    private String formWebUrl;
    private Long formPictureNum;
    private String fomFirstv;
    private String fomSecondv;
    private String fomThirdv;
    private Integer fomFirstn;
    private String formRemark;
    private Long fomSecondn;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_REPORT_FORMATE")
    @SequenceGenerator(name = "SEQ_REPORT_FORMATE", sequenceName = "SEQ_REPORT_FORMATE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FORMPATHOLOGYID")
    public Long getFormPathologyId() {
        return formPathologyId;
    }

    public void setFormPathologyId(Long formPathologyId) {
        this.formPathologyId = formPathologyId;
    }

    @Basic
    @Column(name = "FORMNAME")
    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }

    @Basic
    @Column(name = "FORMSORT")
    public String getFormSort() {
        return formSort;
    }

    public void setFormSort(String formSort) {
        this.formSort = formSort;
    }

    @Basic
    @Column(name = "FORMUSEFLAG")
    public Integer getFormUseFlag() {
        return formUseFlag;
    }

    public void setFormUseFlag(Integer formUseFlag) {
        this.formUseFlag = formUseFlag;
    }

    @Basic
    @Column(name = "FORMISDEFAULT")
    public Integer getFormIsDefault() {
        return formIsDefault;
    }

    public void setFormIsDefault(Integer formIsDefault) {
        this.formIsDefault = formIsDefault;
    }

    @Basic
    @Column(name = "FORMWEBURL")
    public String getFormWebUrl() {
        return formWebUrl;
    }

    public void setFormWebUrl(String formWebUrl) {
        this.formWebUrl = formWebUrl;
    }

    @Basic
    @Column(name = "FORMPICTURENUM")
    public Long getFormPictureNum() {
        return formPictureNum;
    }

    public void setFormPictureNum(Long formPictureNum) {
        this.formPictureNum = formPictureNum;
    }

    @Basic
    @Column(name = "FOMFIRSTV")
    public String getFomFirstv() {
        return fomFirstv;
    }

    public void setFomFirstv(String fomFirstv) {
        this.fomFirstv = fomFirstv;
    }

    @Basic
    @Column(name = "FOMSECONDV")
    public String getFomSecondv() {
        return fomSecondv;
    }

    public void setFomSecondv(String fomSecondv) {
        this.fomSecondv = fomSecondv;
    }

    @Basic
    @Column(name = "FOMTHIRDV")
    public String getFomThirdv() {
        return fomThirdv;
    }

    public void setFomThirdv(String fomThirdv) {
        this.fomThirdv = fomThirdv;
    }

    @Basic
    @Column(name = "FOMFIRSTN")
    public Integer getFomFirstn() {
        return fomFirstn;
    }

    public void setFomFirstn(Integer fomFirstn) {
        this.fomFirstn = fomFirstn;
    }

    @Basic
    @Column(name = "FORMREMARK")
    public String getFormRemark() {
        return formRemark;
    }

    public void setFormRemark(String formRemark) {
        this.formRemark = formRemark;
    }

    @Basic
    @Column(name = "FOMSECONDN")
    public Long getFomSecondn() {
        return fomSecondn;
    }

    public void setFomSecondn(Long fomSecondn) {
        this.fomSecondn = fomSecondn;
    }

}
